<%--
  Created by IntelliJ IDEA.
  User: 12393
  Date: 2021/3/4
  Time: 14:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<html>
<head>
    <title>专业技能修改</title>
    <script type="text/javascript" src="../../js/js/jquery-3.3.1.js"></script>
    <script>
        $(function () {
            /*返回*/
            // $("#back").click(function () {
            //     window.location="Home";
            // })
        })

        /*删除*/
        function del(obj) {
            if (confirm("您确定删除编号为："+obj.id+"的信息吗？")){
                window.location="deleteSp?id="+obj.id;
            }
        }
        /*修改*/
        function update(obj) {
           window.location="showSp?id="+obj.id;
        }
    </script>
</head>
<body>
<h3>专业技能</h3>
<hr>
<a href="#">添加</a>
<button id="back" type="button">返回</button>
<br>
<table>
    <tr>
        <th>编号</th>
        <th>技能名称</th>
        <th>显示颜色</th>
        <th>百分比</th>
        <th>数值百分比</th>
        <th colspan="2">操作</th>
    </tr>
    <c:forEach items="${reSpecialities}" var="re">
        <tr>
            <td>${re.spId}</td>
            <td>${re.spName}</td>
            <td>${re.spFgcolor}</td>
            <td>${re.spValue}</td>
            <td>${re.spValue2}</td>
            <td>
                <button type="button" id="${re.spId}" name="del" onclick="del(this)">删除</button>
            </td>
            <td>
                <button type="button" id="${re.spId}" name="update" onclick="update(this)">修改</button>
            </td>
        </tr>
    </c:forEach>

</table>
</body>
</html>
